﻿/*
==================================================================
    注意：此文件为Auto代码，不可手动修改【部门】
==================================================================
*/

namespace Entities
{
    /// <summary>
    /// 部门
    /// </summary>
    [SugarTable("dbo.Department")]
    public partial class Department
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "DepartmentID")]
        public int DepartmentID { get; set; }
        
        /// <summary>
        /// 负责人
        /// </summary>
        [SugarColumn(ColumnName = "LeaderID")]
        public int? LeaderID { get; set; }
        
        /// <summary>
        /// 负责人名称
        /// </summary>
        [SugarColumn(ColumnName = "LeaderName")]
        public string LeaderName { get; set; }
        
        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string Name { get; set; }
        
        /// <summary>
        /// 类型
        /// </summary>
        [SugarColumn(ColumnName = "Type")]
        public int Type { get; set; }
        
        /// <summary>
        /// 省
        /// </summary>
        [SugarColumn(ColumnName = "ProvinceID")]
        public int? ProvinceID { get; set; }
        
        /// <summary>
        /// 市
        /// </summary>
        [SugarColumn(ColumnName = "CityID")]
        public int? CityID { get; set; }
        
        /// <summary>
        /// 县
        /// </summary>
        [SugarColumn(ColumnName = "AreaID")]
        public int? AreaID { get; set; }
        
        /// <summary>
        /// 父节点
        /// </summary>
        [SugarColumn(ColumnName = "ParentID")]
        public int ParentID { get; set; }
        
        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(ColumnName = "IsDelete")]
        public bool IsDelete { get; set; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "CreateUserID")]
        public int CreateUserID { get; set; }
        
        /// <summary>
        /// 创建人姓名
        /// </summary>
        [SugarColumn(ColumnName = "CreateUserName")]
        public string CreateUserName { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTime CreateDate { get; set; }
        
        /// <summary>
        /// 修改人
        /// </summary>
        [SugarColumn(ColumnName = "UpdateUserID")]
        public int UpdateUserID { get; set; }
        
        /// <summary>
        /// 修改人姓名
        /// </summary>
        [SugarColumn(ColumnName = "UpdateUserName")]
        public string UpdateUserName { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "UpdateDate")]
        public DateTime UpdateDate { get; set; }
    }
}
